# coding: utf-8
import os
y = "1"
os.system('clear')
x = float(input('\tx = '))
while y =="1":
os.system('clear')
print('\n\t\t 続ける電卓')
print('\t\t=============================~==\n')
print('x = {:.1f}'.format(x))
p = input('\t\t演算: + - * / // %\n')
if p not in ['+', '-', '*','/','//','%']:
print("入力ミス")
break
y = float(input('\ny = '))
print('\t\t {:.1f}'.format(x), p, end=' ')
if p == "+":
x += y
elif p == "-":
x -= y
elif p == "*":
x *= y
elif p == "/":
x /= y
elif p == "//":
x //= y
elif p == "%":
x %= y
ans = "{:.1f} = {:.1f}\n"
print(ans.format(y, x))
y = input('\n\t\t 計算を 1:続ける Enter: やめる\n')
print('\nありがとうございました.\n')